package com.summer.bilibili.service;

import com.summer.bilibili.consts.Period;
import com.summer.bilibili.domain.video.VideoCoin;
import org.springframework.lang.Nullable;


public interface VideoCoinService extends BaseService< VideoCoin > {
    /**
     * 给视频投币
     */
    VideoCoin create(Long videoId, int count);
    /**
     * 统计硬币总数
     */
    int countCoin(@Nullable Long videoId,
                  @Nullable Long userId,
                  @Nullable Period period);
    /**
     * 获取当前用户投币数量
     */
    int getUserCoin(Long videoId);
}
